﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Lilium.T4.Hosting;
using System.Web;

namespace Lilium.Web.Mvc.T4
{
    public sealed class ContentTypeProcessor : CustomDirectiveProcessorBase
    {
        #region ICustomDirectiveProcessor Members

        public override void ProcessDirective(IDictionary<string, string> arguments)
        {
            var value = GetRequiredArgument(arguments, "value");
            HttpContext.Current.Response.ContentType = value;
        }

        #endregion
    }
}
